package com.leo.filter;

import org.springframework.web.filter.AbstractRequestLoggingFilter;

import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletRequest;

/**
 * @ClassName: MyFilter4
 * @Description: ${description}
 * @Author: leo825
 * @Date: 2020-02-03 17:50
 * @Version: 1.0
 */
@WebFilter(urlPatterns = "/*", filterName = "myFilter4")
public class MyFilter4 extends AbstractRequestLoggingFilter {
    @Override
    protected void beforeRequest(HttpServletRequest httpServletRequest, String s) {
        System.out.println("MyFilter4 执行过滤 beforeRequest");
    }

    @Override
    protected void afterRequest(HttpServletRequest httpServletRequest, String s) {
        System.out.println("MyFilter4 执行过滤 afterRequest");
    }
}
